package com.melesta.payment.amazon;

import com.melesta.payment.interfaces.IRequest;
import com.melesta.payment.interfaces.IRequestBuilder;

public class RequestBuilder
  implements IRequestBuilder
{
  public static final String NAME_TAG = "name";
  private static final String SKU_TAG = "billingCode";
  private final Request request;

  public RequestBuilder(PaymentSystem paramPaymentSystem)
  {
    this.request = new Request(paramPaymentSystem);
  }

  public IRequest createRequest()
  {
    Request localRequest = new Request(this.request.getSystem());
    localRequest.setName(this.request.getName());
    localRequest.setSku(this.request.getSku());
    localRequest.setMultiplier(this.request.getMultiplier());
    return localRequest;
  }

  public Object get(String paramString)
  {
    if (paramString.equals("name"))
      return this.request.getName();
    if (paramString.equals("billingCode"))
      return this.request.getSku();
    return null;
  }

  public IRequestBuilder set(String paramString, Object paramObject)
  {
    String str = paramObject.toString();
    if (paramString.equals("name"))
      this.request.setName(str);
    while (!paramString.equals("billingCode"))
      return this;
    this.request.setSku(str);
    return this;
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.melesta.payment.amazon.RequestBuilder
 * JD-Core Version:    0.6.2
 */